<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>206-原子集合.html</title>
</head>
<body>
	
</body>
<script>
	var str = "qwer 7890 yuio 4590 uiop3435";
	var reg = /[0-9]/g;
	var reg1 = /\d/g;
	var reg2 = /[^0-9]/g;
	var reg3 = /\D/g;
	var reg4 = /./g;
	var reg5 = /[0-9a-a]/g;
	var reg6 = /\w/g;
	var reg7 = /[^0-9a-z]/g;
	var reg8 = /\w/g;
	var reg9 = /\s/g;
	var reg10 = /[\t/n/r/f\v]/g;
	console.log(str);
	console.log(str.replace(reg1,"*"));
	console.log(str.replace(reg2,"*"));
	console.log(str.replace(reg3,"*"));
	console.log(str.replace(reg4,"*"));
	console.log(str.replace(reg5,"*"));
	console.log(str.replace(reg6,"*"));
	console.log(str.replace(reg7,"*"));
	console.log(str.replace(reg8,"*"));
	console.log(str.replace(reg9,"*"));
	console.log(str.replace(reg10,"*"));
</script>
</html>